﻿namespace HDW_Migrate.Db.Entities;

/// <summary>
/// 患者
/// </summary>
public class Patient : BaseEntity
{
    /// <summary>
    /// 出生日期
    /// </summary>
    public DateTime? DateOfBirth { get; set; }
    /// <summary>
    /// Email
    /// </summary>
    public string Email { get; set; }
    /// <summary>
    /// 性别
    /// </summary>
    public string Gender { get; set; }
    /// <summary>
    /// 姓名
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string Note { get; set; }
    /// <summary>
    /// 患者编号
    /// </summary>
    public string GlobalPatientId { get; set; }
    /// <summary>
    /// 主索引
    /// </summary>
    public string PatientMasterIndex { get; set; }
    /// <summary>
    /// 拼音名
    /// </summary>
    public string SpellName { get; set; }
    /// <summary>
    /// 社保号
    /// </summary>
    public string SocietyNumber { get; set; }
    /// <summary>
    /// 门诊号
    /// </summary>
    public string ClinicalNumber { get; set; }
    /// <summary>
    /// 住院号
    /// </summary>
    public string InpatientNumber { get; set; }
    /// <summary>
    /// 民族Id
    /// </summary>
    public Guid? NationId { get; set; }
    /// <summary>
    /// 联系方式
    /// </summary>
    public string Telephone { get; set; }
    /// <summary>
    /// 合并Id
    /// </summary>
    public Guid? MergeId { get; set; }
    /// <summary>
    /// 医院Id
    /// </summary>
    public Guid? HospitalId { get; set; }
    /// <summary>
    /// 最后更新时间
    /// </summary>
    public DateTime LastUpdateDateTime { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateDateTime { get; set; }
    /// <summary>
    /// 身份证
    /// </summary>
    public string IDCard { get; set; }
    /// <summary>
    /// 地址
    /// </summary>
    public string Address { get; set; }
    /// <summary>
    /// 姓
    /// </summary>
    public string FamilyName { get; set; }
    /// <summary>
    /// 名
    /// </summary>
    public string GivenName { get; set; }
    /// <summary>
    /// 中间名
    /// </summary>
    public string MiddleName { get; set; }
    /// <summary>
    /// His患者编号
    /// </summary>
    public string HISPatientId { get; set; }
}

/// <summary>
/// 民族
/// </summary>
public class Nation : BaseEntity
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 编码
    /// </summary>
    public string Code { get; set; }
    /// <summary>
    /// 描述
    /// </summary>
    public string Description { get; set; }
    /// <summary>
    /// 排序值
    /// </summary>
    public int Sort { get; set; }
    /// <summary>
    /// 助记码
    /// </summary>
    public string MnemonicCode { get; set; }
}

/// <summary>
/// 患者身份
/// </summary>
public class PatientIdentity : BaseEntity
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 编码
    /// </summary>
    public string Code { get; set; }
    /// <summary>
    /// 排序号
    /// </summary>
    public int Sort { get; set; }
    /// <summary>
    /// 助记码
    /// </summary>
    public string MnemonicCode { get; set; }
    /// <summary>
    /// 身份类别，在武警中为平民（0）、军人（1）
    /// </summary>
    public int ClassType { get; set; }
}